package com.kayt.cyberBar.cyber.business.entity.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;


/**
 * The persistent class for the b_cyber_base_delivery database table.
 * 
 */
@Entity
@Table(name="b_cyber_base_delivery")
@NamedQuery(name="BCyberBaseDelivery.findAll", query="SELECT b FROM BCyberBaseDelivery b")
public class BCyberBaseDelivery implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String statusCode;
	private String updateTime;
	private String fromCode;
	private String fromName;
	private String toCode;
	private String toName;
	private String remarks;
	private String cyberCode;
	
	private List<BCyberBaseDeliveryItem> itemList = new ArrayList<>();

	public BCyberBaseDelivery() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getRemarks() {
		return remarks;
	}


	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	
	@Column(name="FROM_CODE")
	public String getFromCode() {
		return fromCode;
	}


	public void setFromCode(String fromCode) {
		this.fromCode = fromCode;
	}

	@Column(name="FROM_NAME")
	public String getFromName() {
		return fromName;
	}


	public void setFromName(String fromName) {
		this.fromName = fromName;
	}

	@Column(name="TO_CODE")
	public String getToCode() {
		return toCode;
	}


	public void setToCode(String toCode) {
		this.toCode = toCode;
	}

	@Column(name="TO_NAME")
	public String getToName() {
		return toName;
	}


	public void setToName(String toName) {
		this.toName = toName;
	}

	@Column(name="CYBER_CODE")
	public String getCyberCode() {
		return cyberCode;
	}


	public void setCyberCode(String cyberCode) {
		this.cyberCode = cyberCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToMany(targetEntity = BCyberBaseDeliveryItem.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "delivery")
	public List<BCyberBaseDeliveryItem> getItemList() {
		return itemList;
	}


	public void setItemList(List<BCyberBaseDeliveryItem> itemList) {
		this.itemList = itemList;
	}

}